﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Hsp.Auto.Model.Models
{
    /// <summary>
    /// 表信息定义实体
    /// </summary>
    public class Tables
    {
        /// <summary>
        /// 序号
        /// </summary>
        [Display(Name = "序号")]
        public int Id { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        [Display(Name = "表名")]
        public string? Name { get; set; }

        /// <summary>
        /// 表说明，定义方式为：【主体：描述或定义】
        /// </summary>
        [Display(Name = "描述")]
        public string? Comment { get; set; }

    }

    /// <summary>
    /// 视图信息定义实体
    /// </summary>
    public class Views
    {
        /// <summary>
        /// 视图名
        /// </summary>
        [Display(Name = "视图名")]
        public string? Name { get; set; }

    }

    /// <summary>
    /// 主键类型
    /// </summary>
    public enum PrimaryKeyType
    {
        /// <summary>
        /// 没有主键或未知
        /// </summary>
        UNKNOWN,

        /// <summary>
        /// 主键的值是自增方式
        /// </summary>
        AUTO,

        /// <summary>
        /// 主键的值是插入前设置的方式
        /// </summary>
        SET
    }

    /// <summary>
    /// 枚举数据实体
    /// </summary>
    public class Enumerate
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 描述，定义方式为：【主体：描述或定义】
        /// </summary>
        public string Comment { get; set; }

    }
}
